﻿@model List<Models.Customer>
<link rel="stylesheet" href="~/Content/bootstrap.min.css">
<p></p>
<table class="table table-striped table-hover">
    <tr>
        <th>姓名</th>
        <th>地址</th>
        <th>登录ID</th>
        <th>电话</th>
        <th>操作</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@item.CustomerName</td>
            <td>@item.Address</td>
            <td>@item.LoginID</td>
            <td>@item.Phone</td>
            <td>
                <a class="btn btn-primary" href="#" onclick="Edit('@item.CustomerID','@item.LoginID','@item.Pwd','@item.CustomerName','@item.IdentityID','@item.Address','@item.Phone')">编辑(弹窗)</a>
                <a class="btn btn-primary" href="/Home/Edit?cid=@item.CustomerID">编辑</a>
                <a class="btn btn-danger" href="/Home/Del?cid=@item.CustomerID"
                   onclick="return confirm('您确定要删除 @item.CustomerName ？')">删除</a>
            </td>
        </tr>
    }
</table>